This is an R Markdown(R Core Team 2023) document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
| Country | Mean Age | Maximum BMI | Percentage of Death |
|---|---|---|---|
| Female | |||
| Brasil | 59 | 38.16 | 2.3% |
| Kazakhstan | 68 | 35.78 | 0.4% |
| Mexico | 59 | 43.82 | 2.0% |
| Spain | 58 | 40.35 | 2.5% |
| USA | 59 | 53.01 | 31.6% |
| Male | |||
| Brasil | 62 | 37.72 | 3.6% |
| Kazakhstan | 56 | 34.78 | 0.4% |
| Mexico | 62 | 40.96 | 3.2% |
| Spain | 60 | 42.83 | 3.8% |
| USA | 60 | 60.24 | 50.1% |
We can also mention the result directly in the text, like this: the maximum age in the data is 88.
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.
knitr::include_graphics("images/scream.jpg")